/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.page.active {
    display: block;
}

h1, h2 {
    color: #D32F2F;
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 15px;
}

/* 按钮样式 */
.primary-btn, .secondary-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.primary-btn {
    background-color: #D32F2F;
    color: white;
}

.primary-btn:hover {
    background-color: #B71C1C;
}

.secondary-btn {
    background-color: #e0e0e0;
    color: #333;
}

.secondary-btn:hover {
    background-color: #bdbdbd;
}

/* 页面1: 介绍页 */
.intro-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

/* 页面2: 查询页 */
.query-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.error-message {
    color: #D32F2F;
    margin-bottom: 15px;
    text-align: center;
    min-height: 20px;
}

/* 页面3: 贺卡生成页 */
.card-container {
    max-width: 600px;
    margin: 0 auto;
}

.card-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.card-style {
    margin: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.card-style:hover {
    transform: scale(1.05);
}

.card-style img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.card-content {
    width: 300px;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-header {
    text-align: center;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: #D32F2F;
}

.card-subtitle {
    font-size: 16px;
    color: #555;
}

.card-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.award-info {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #D32F2F;
}

.message {
    font-size: 16px;
    line-height: 1.8;
}

.card-footer {
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .card-style img {
        width: 100px;
        height: 150px;
    }
    
    .card-content {
        width: 260px;
        height: 390px;
    }
}